<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<base href="<%=basePath%>"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/moban.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="css/widget.css" type="text/css" rel="stylesheet" media="screen" />
    <link href="./superAdmin/css/addbtn.css" type="text/css" rel="stylesheet" media="screen" />
<script type="text/javascript">
function showMsg() {
	var msg = '${message}';
	if(msg!=null&&msg!=""){
		alert(msg);
	}
}
function changeSrc(obj){
	obj.src="img/return2.png";
}
function changeSrc2(obj){
	obj.src="img/return.png";
}
</script>
</head>

<body onload="showMsg()">
<div style="background-color:#2E5E79;width:100%;height:50px;position:fixed;top:0;left:0;"></div>
<div id="package">
	<div id="hel">
		<div id="title">
    		<span><img src="./managementOfMember/images/home.png" /> &nbsp;班级列表</span>
    		<span id="right"><a href="departmentShowStruct.action" target="main">
    		<img src="img/return.png" onMouseOver="changeSrc(this)" onMouseOut="changeSrc2(this)">
    		</a></span>
 			<span style="float:right;margin-top:5px;"><a href="showAddMajorStruct.action?departmentId=${param.departmentId }" target="main"><input type="submit" name="submit" class="className" value=" 添 加 " /></a></span>
    	</div>
    </div>
	<div id="content">
    		<table class="tab">
        		<tr>
            		<th width="10%">序号</th>
                	<th width="68%">班级名称</th>
                	<th width="20%">删除</th>
            	</tr>
            	<s:iterator value="#request.majors" var="major" status="item">
            		<tr>
            			<td><s:property value="%{#item.getIndex()+1}"/></td>
            			<td>${major.name}</td>
            			<td><a onclick="return confirm('确认删除?')" href="deleteMajorStruct.action?majorId=${major.id }&departmentId=${param.departmentId }">删除</a></td>
            		</tr>
				</s:iterator>
       	 	</table>
    </div>
</div>
</body>
</html>